package edu.jd.log;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Log {
    private String user_id;
    private int auth_id;
    private int role_id;
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    private boolean state;

    public Log(String user_id, int auth_id, int role_id, Date time, boolean state) {
        this.user_id = user_id;
        this.auth_id = auth_id;
        this.role_id = role_id;
        this.time = time;
        this.state = state;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public int getAuth_id() {
        return auth_id;
    }

    public void setAuth_id(int auth_id) {
        this.auth_id = auth_id;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
